import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
import eslintPlugin from 'vite-plugin-eslint'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    uni(),
    eslintPlugin({
      cache: false,
      include: ['./src/**/*.js', './src/**/*.vue', './src/**/*.ts'],
      exclude: ['./node_modules/**', './dist/**', 'node_modules/**', '**/node_modules/**'],
      fix: true
    })
  ]
})
